<html>
	<head>
		<title>Artikel manager</title>
	</head>
	<body>
		<?php echo form_open("admin/article/update/".$selected_article->id.""); ?>
		<input type="text" value="<?php echo $selected_article->title; ?>" name="title" />
		<div style="float: right;"> 
			<select name="category_id">
				<?php foreach ($categories as $category):?>
				<?php if($category->id == $_GET['category_id']) :?>
					<option value="<?php echo $category->id; ?>" selected> <?php echo $category->title_nl; ?></option>
				<?php else: ?>
						<option value="<?php echo $category->id; ?>"> <?php echo $category->title_nl; ?></option>
				<?php endif; ?>
				
				<?php endforeach;?>
			</select>
		 </div>
		<p />
		<textarea rows="30" cols="100" name="fulltext"><?php echo $selected_article->fulltext; ?></textarea>
		<p />
		<input type="submit" value="Opslaan" />
		<p />
		<?php echo anchor("admin/article/read", "Terug naar artikelen"); ?>
	</body>
</html>